#include<memory>
#include<iostream>
#include<string>
#include"client.hpp"

using namespace std;
using namespace nt_client;

void Usage(const char* program)
{
    cout<<"Usage:"<<endl;
    cout<<"\t"<<program<<"ServerIP ServerPort"<<endl;
}


int main(int argc,char* argv[])
{
    if(argc!=3)
    {
        Usage(argv[0]);
        return USAGE_ERR;
    }

    std::string ip=argv[1];
    uint16_t port=stoi(argv[2]);

    unique_ptr<Udpclient> uclient(new Udpclient(ip,port));


    uclient->StartClient();

    return 0;


}